package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description NursingLevelMapper
 * @Author xulang
 * @Date 2025-08-30
 */
@Mapper
public interface NursingLevelMapper {

    @Select("select count(*) from nursing_level nl where nl.lplan_id=#{planId} ")
    Integer countByPlanId(Long id);
    List<NursingLevel> getAllNursingLevel();

    void addNursingLevel(NursingLevel nursingLevel);

    Page<NursingLevelVo> getBypageNursingLevel(String name, Integer status);

    NursingLevel getNursingLevelById(Long id);

    void updateNursingLevel(NursingLevel nursingLevel);

    void deleteNursingLevel(Long id);

    void enableAndDisableNursingLevel(Long id, Integer status);
}
